package com.bolt.admin.config;

import com.bstek.ureport.console.UReportServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by Administrator on 2020/6/17.
 */
@Configuration
@ImportResource(locations = {"classpath:ureport-console-context.xml"} )
public class ReportConfig {
    @Bean
    public ServletRegistrationBean indexServletRegistration() {
        ServletRegistrationBean registration = new ServletRegistrationBean(new UReportServlet());
        registration.addUrlMappings("/ureport/*");
        return registration;
    }
}


 